<?php include('config.php') ?>
<?php
session_start();

$tbl_name='question';
$response='0';

if(isset($_GET['survey_ID'])&&isset($_GET['question']))
{
    $survey_ID=$_SESSION['survey_ID'];
    $question=$_GET['question'];
        
    $sql = "INSERT INTO $tbl_name(`survey_ID`, `question_text`, `question_sum`, `question_count`) VALUES ($survey_ID,'$question',0,0)";
    $result = mysql_query($sql) or die ("Error in query ".mysql_error());
    $response = $question;
}
echo $response;
?>
